package com.siruier.boss.ui.tool.image.select.service


interface IImageSelect {
    fun selectImage(config: (ImageUploadUBuilder.() -> Unit)? = null)
}

typealias OnUploadSuccessListener = ((MutableList<com.siruier.boss.ui.tool.image.select.domain.ImageSelectBean>?) -> Unit)?
typealias OnCancelSuccessListener = (() -> Unit)?

class ImageUploadUBuilder {
    var onUploadSuccessListener: OnUploadSuccessListener = null
    var onCancelSuccessListener: OnCancelSuccessListener = null
    var cutOut = false
    var isMultipleChoice = true
    var isUp = false
    var isCompress = true
    var selectCount = 9
    var columnCount = 3
    var md5 = false

    // 也就是文件上传后的目录
    var path: String = "image"
}